// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

#nullable restore
namespace Elastic.Clients.Elasticsearch.TransformManagement
{
	public sealed partial class TransformIndexerStats
	{
		[JsonInclude]
		[JsonPropertyName("delete_time_in_ms")]
		public long? DeleteTimeInMs { get; init; }

		[JsonInclude]
		[JsonPropertyName("documents_deleted")]
		public long? DocumentsDeleted { get; init; }

		[JsonInclude]
		[JsonPropertyName("documents_indexed")]
		public long DocumentsIndexed { get; init; }

		[JsonInclude]
		[JsonPropertyName("documents_processed")]
		public long DocumentsProcessed { get; init; }

		[JsonInclude]
		[JsonPropertyName("exponential_avg_checkpoint_duration_ms")]
		public double ExponentialAvgCheckpointDurationMs { get; init; }

		[JsonInclude]
		[JsonPropertyName("exponential_avg_documents_indexed")]
		public double ExponentialAvgDocumentsIndexed { get; init; }

		[JsonInclude]
		[JsonPropertyName("exponential_avg_documents_processed")]
		public double ExponentialAvgDocumentsProcessed { get; init; }

		[JsonInclude]
		[JsonPropertyName("index_failures")]
		public long IndexFailures { get; init; }

		[JsonInclude]
		[JsonPropertyName("index_time_in_ms")]
		public long IndexTimeInMs { get; init; }

		[JsonInclude]
		[JsonPropertyName("index_total")]
		public long IndexTotal { get; init; }

		[JsonInclude]
		[JsonPropertyName("pages_processed")]
		public long PagesProcessed { get; init; }

		[JsonInclude]
		[JsonPropertyName("processing_time_in_ms")]
		public long ProcessingTimeInMs { get; init; }

		[JsonInclude]
		[JsonPropertyName("processing_total")]
		public long ProcessingTotal { get; init; }

		[JsonInclude]
		[JsonPropertyName("search_failures")]
		public long SearchFailures { get; init; }

		[JsonInclude]
		[JsonPropertyName("search_time_in_ms")]
		public long SearchTimeInMs { get; init; }

		[JsonInclude]
		[JsonPropertyName("search_total")]
		public long SearchTotal { get; init; }

		[JsonInclude]
		[JsonPropertyName("trigger_count")]
		public long TriggerCount { get; init; }
	}
}